package com.jiyun.login.feign;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.jiyun.pojo.Race;
import com.jiyun.pojo.RaceVo;
import com.jiyun.pojo.Result;
import com.jiyun.pojo.Team;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("day12Race")
public interface FeignRaceService {
    @RequestMapping("race/raceCount")
    Result raceCount(@RequestParam(value = "consumerId") Integer consumerId);
    @RequestMapping("race/findRaceAll")
    Result findRaceAll(@RequestBody RaceVo raceVo);
    @RequestMapping("race/findLikeRace")
    Result findLikeRace(@RequestParam(value = "aaa") String aaa,@RequestParam(value = "lib") String Lib );
    @RequestMapping("race/addTeam")
    void addTeam(@RequestBody Race race);
    @RequestMapping("race/findTeam")
    List<Team> findTeam();
    @RequestMapping("race/findTrainId")
    Result findTrainId(@RequestParam(value = "id") Integer id);
}
